package com.hgkj.cloud.base.dao;

import com.github.pagehelper.Page;
import com.hgkj.cloud.base.domain.SysTestingQuestionType;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface SysTestingQuestionTypeMapper {
    int deleteByPrimaryKey(@Param("id")Integer id);

    int insert(SysTestingQuestionType record);

    int insertSelective(SysTestingQuestionType record);

    SysTestingQuestionType selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(SysTestingQuestionType record);

    int updateByPrimaryKey(SysTestingQuestionType record);

    List<SysTestingQuestionType> listTodayRecommend();

    Page<SysTestingQuestionType> getChildQuestionType(Map<String, Object> map);

    List<SysTestingQuestionType> getChildQuestionTypesByParentId(@Param("parentId") Integer parentId);

    int updatePercentageAndPraise(Map<String, Object> map);

    SysTestingQuestionType getTestQuestionTypeById(@Param("typeId") Integer typeId);

    Page<SysTestingQuestionType> getFavoriteByUser(@Param("userUuid") String userUuid);

    int getCountForTesting(Map<String, Object> map);

    List<SysTestingQuestionType> getChildQuestionTypesNoParentId();

    int insertQuestionType(SysTestingQuestionType type) ;

    List<Map> getAllTest();
    Map getTestById(@Param("id") Long id);

    void updatetest(Map map);



}